package com.kaifamiao.www.demo.Do20;

public class De05 {
    public static void main(String[] args) {
        char[] one = {'床', '前', '明', '月', '光', ','};
        char[] two = {'疑', '是', '地', '上', '霜', '。'};
        char[] three = {'举', '头', '望', '明', '月', ','};
        char[] four = {'低', '头', '思', '故', '乡', '。'};
        char[][] jys = {one, two, three, four};
        System.out.println("静夜思-李白");
        for (int i = 0; i < jys.length; i++) {
            for (int j = 0; j < jys[i].length; j++) {
                System.out.print(jys[i][j]);
            }
            System.out.println();
        }
        System.out.println("竖向阅读:");
        for (int j = 0; j < 6; j++) {	  	// 列变行
            for (int i = 3; i >= 0; i--) {	// 行变列
                System.out.print(jys[i][j]);// 输出数组中的元素
            }
            System.out.println();	//换行
        }
    }
}